<%-- 
    Document   : DeleteStaff
    Created on : Nov 22, 2012, 10:05:47 AM
    Author     : vupttse
--%>

<%@page import="ass.data.UserDAL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            String username = request.getParameter("username");
            if (username != null) {
                try {
                    UserDAL.removeUser(username);
                    response.sendRedirect("MainManagerPage.jsp");
                } catch (Exception e) {
                    out.println(e.getMessage());
                }
            } else {
                response.sendRedirect("MainManagerPage.jsp");
            }
        %>
    </body>
</html>
